package cn.yoyo.mapper;

import cn.yoyo.entity.BookType;

import java.util.List;
import java.util.Map;

public interface BookTypeMapper {
    public int add(Map<String, Object> map);

    public int update(Map<String, Object> map);

    public List<BookType> findAll();

    public List<BookType> findAllCType();

    public BookType findById(Integer id);

    public int delete(Integer id);

    public int deleteCType(Integer parentid);// 禁用所有的子类型

    public int unlock(Integer id);

    public int unlockCType(Integer parentid);// 解锁所有的子类型
}
